package com.yuntsg.ruiijn.databse_search.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler;
import common.util.SortUtil;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.List;

@TableName(value = "result_queue")
@Accessors(chain = true)
@Data
public class ResultQueue {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private String img1;

    private String img2;

    @TableField(value = "result", typeHandler = FastjsonTypeHandler.class)
    private SortUtil.Result result;

    private Integer flag;

    private Integer uid;


    private Integer level;

    @TableField(value = "comparison_key", typeHandler = FastjsonTypeHandler.class)
    private List<String> comparisonKey;

    private String box1;

    private String box2;

    private Integer ab;
}